let router = [
  // user
  {
    path: '/',
    component: './Home/empty',
  },
  {
    path: '/user',
    component: '../layouts/UserLayout',
    routes: [
      {path: '/user/login', component: './User/Login'},
      {path: '/user/login/:id', exact: true, component: './User/Login'},
    ],
  },
  {
    path: '/',
    component: '../layouts/BasicLayout',
    routes: [
      // dashboard
      {
        path: '/concentrators',
        name: '水表列表',
        icon: 'home',
        exact: true,
        component: './Concentrators/Index',
      },
      {
        path: '/concentrator_firmwares',
        name: '水表列表',
        icon: 'home',
        exact: true,
        component: './ConcentratorFirmwares/Index',
      },
      {
        path: '/permissions',
        name: '水表列表',
        icon: 'home',
        exact: true,
        component: './Permissions/Index',
      },
      {
        path: '/roles',
        exact: true,
        component: './Roles/Index',
      },
      {
        path: '/staffs',
        exact: true,
        component: './Staffs/Index',
      },
      {
        path: '/home',
        exact: true,
        component: './Home/empty',
      },
      {
        component: '404',
      },
    ],
  },
  {
    component: '404',
  },
];

export default router
